fix: 失败的种子不会再次下载,也没有手动重试操作,每次要删数据库,挺麻烦的。#818
Open
snowlocked wants to merge 3 commits into
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Contributor
|
没看出改动的影响,感觉和原来差不多, 我想的是改名后download = true, 还在想实现 |
Author
我这里修改是根据if里的下载函数判断成功了才把种子写入数据库,否则不写入,等下次fetch rss再尝试下载写入。或者看看有没有更好的实现。 |
Contributor
|
遇到相同问题,蛋疼 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
有时候因网络等原因导致某些种子下载失败了,但还是往数据库添加已下载的记录,导致重新获取时不会对该种子再次重新下载。

当我把数据库对应数据删除后,重新获取该种子是可以下载的。

这里打算把下载失败的种子不入库,待下次下载成功才入库,又或者看看能不能改成对下载失败的种子可以提供一个手动检测或定时检测的机制来下载这批失败的种子。